Semantic subtyping for the π-calculus
نویسندگان
چکیده
Subtyping relations for the π-calculus are usually de-fined in a syntactic way, by means of structural rules. Wepropose a semantic characterisation of channel types anduse it to derive a subtyping relation.The type system we consider includes read-only andwrite-only channel types, as well as boolean combinationsof types. A set-theoretic interpretation of types is provided,in which boolean combinations are interpreted as the corre-sponding set-theoretic operations. Subtyping is defined asinclusion of the interpretations. We prove the decidability ofthe subtyping relation and sketch the subtyping algorithm.In order to fully exploit the type system, we define a vari-ant of the π-calculus where communication is subjected topattern matching that performs dynamic typecase.
منابع مشابه
Encoding CDuce in the Cπ-calculus?
CDuce is a functional programming language featuring overloaded functions and a rich type system with recursive types, subtyping, union, negation and intersection types. The boolean constructors have a set-theoretic behaviour defined via a semantic interpretation of the types. The Cπ-calculus is an extension of the π-calculus that enriches Pierce and Sangiorgi π-calculus subtyping with union, i...
متن کاملSemantic Subtyping for the p-Calculus
Subtyping relations for the π-calculus are usually defined in a syntactic way, by means of structural rules. We propose a semantic characterisation of channel types and use it to derive a subtyping relation. The type system we consider includes read-only and write-only channel types, as well as boolean combinations of types. A set-theoretic interpretation of types is provided, in which boolean ...
متن کاملSemantic Subtyping: Challenges, Perspectives, and Open Problems
Semantic subtyping is a relatively new approach to define subtyping relations where types are interpreted as sets and union, intersection and negation types have the corresponding set-theoretic interpretation. In this lecture we outline the approach, give an aperçu of its expressiveness and generality by applying it to the λ-calculus with recursive and product types and to the π-calculus. We th...
متن کاملFull Abstraction in a Subtyped pi-Calculus with Linear Types
We introduce a concise pi-calculus with directed choices and develop a theory of subtyping. Built on a simple behavioural intuition, the calculus offers exact semantic analysis of the extant notions of subtyping in functional programming languages and session-based programming languages. After illustrating the idea of subtyping through examples, we show type-directed embeddings of two known sub...
متن کاملSession typing and asynchronous subtyping for the higher-order π-calculus
This paper proposes a session typing system for the higher-order π-calculus(the HOπ-calculus) with asynchronous communication subtyping, which al-lows partial commutativity of actions in higher-order processes. The systemenables two complementary kinds of optimisation of communication code,mobile code and asynchronous permutation of session actions, within pro-cesses tha...
متن کامل